package com.wander.business.book.c2_2_5;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Wander.Zeng
 * @create 2017-10-22 15:26
 * @desc BookMain
 */
public class BookMain {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BookConfig_c2_2_5.class);

        DemoPublisher demoPublisher = context.getBean(DemoPublisher.class);
        demoPublisher.publisher("hello wander");

        context.close();
    }

}
